<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST">
    <div class="form-group">
        <label for="nickname" class="control-label col-xs-12 col-sm-2">{:__('Bnickname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="nickname" name="row[nickname]" data-rule="required;nickname"
                placeholder="{:__('Bnickname')}" />
        </div>
    </div>

    <div class="form-group">
        <label for="mobile" title="手机号码就是密码" class="control-label col-xs-12 col-sm-2">{:__('Bmobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" title="手机号码就是密码" class="form-control" id="mobile" name="row[mobile]" data-rule="required;mobile"
                placeholder="{:__('Bmobile')}" />
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('BsexText')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-gender" data-rule="required" class="form-control selectpicker" name="row[gender]">
                {foreach name=" $Sexlist" item="vo"}
                <option value="{$key}" {in name="key" value="" }selected{/in}>{$vo} </option> {/foreach} </select>
                    </div> </div> <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('SName')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        {:build_select('row[sourceid]', $Sourcdata, null, ['class'=>'selectpicker', 'required'=>''])}
                    </div>
        </div>

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('BdealText')}:</label>
            <div class="col-xs-12 col-sm-8">
                <select id="c-deal" data-rule="required" class="form-control selectpicker" name="row[deal]">
                    {foreach name=" $Deallist" item="vo"}
                    <option value="{$key}" {in name="key" value="" }selected{/in}>{$vo} </option> {/foreach} </select>
                        </div> </div> <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">地区选择:</label>
                        <div style="position:relative;" class="col-xs-12 col-sm-10 region_city">
                            <input id="city" readonly type="text" name="row[region]" data-toggle="city-picker">
                        </div>
            </div>

            <div class="form-group hidden layer-footer">
                <label class="control-label col-xs-12 col-sm-2"></label>
                <div class="col-xs-12 col-sm-8">
                    <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                    <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                </div>
            </div>
</form>
<style>
    .region_city .city-picker-span {
        width: 80% !important;
    }
</style>